﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<script type="text/javascript">
    $(function () {
        initControl();
    });
    function initControl() {
        var myLayout = $('#layout').layout({ resizable: false });
        $('select').bindSelect();
    }
    function btn_ok() {
        parent.$.detailClose();
    }
    function btn_cancel() {
        parent.$.detailClose();
    }
    function btn_add() {
        var title = '选择材料规格';
        var url = '/BOM/MaterialQuota/MaterialSpecificationSelect';
        $.detailOpen2({
            id: "Detail",
            title: title,
            url: url
        });
    }
</script>
<div class="ui-layout" id="layout" style="height: 100%; width: 100%;">
    <div class="ui-layout-center">
        <form id="form1">
            <div style="width:690px;margin:0 auto;">
                <table class="form" style="width:640px;text-align:right;margin:15px;border-bottom:2px solid #ccc;">
                    <tr>
                        <td style=" padding: 5px 10px;">
                            <div class="btn-group" style="margin-right:20px;">
                                <a id="" class="btn btn-primary center-block" onclick="btn_ok()"><span class="glyphicon glyphicon-ok"></span> 确认</a>
                            </div>
                            <div class="btn-group">
                                <a id="" class="btn btn-primary center-block" onclick="btn_cancel()"><span class="glyphicon glyphicon-remove"></span> 取消</a>
                            </div>
                        </td>
                    </tr>
                </table>
                <table class="form" style="width: 640px;margin-left:15px;" border="0">
                    <tr>
                        <th class="formTitle" style="width:80px">材料编码</th>
                        <td class="formValue input-width-210" style="width:280px;">
                            <select id="" name="" class="form-control">
                                <option>&nbsp;</option>
                            </select>
                        </td>
                        <td rowspan="7" style="position:relative;">
                            <div class="line-table input-width-80" style="position:absolute;text-align:left;top:66px;left:20px;">
                                <div class="btn-group">
                                    宽度公差<br /><input id="" name="" placeholder="" type="text" class="form-control text-right" /><label class="suffix">mm</label> &nbsp;
                                </div>
                                <div class="btn-group">
                                    长度公差<br /><input id="" name="" placeholder="" type="text" class="form-control text-right" /><label class="suffix">mm</label> &nbsp;
                                </div>
                            </div>
                            <div class="line-table input-width-185" style="position:absolute;text-align:left;bottom:2px;left:20px;">
                                <div class="btn-group">
                                    理论板重<br /><input id="" name="" type="text" class="form-control" value="" /><label class="suffix">Kg</label>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">大类编码</th>
                        <td class="formValue input-width-210">
                            <select id="" name="" class="form-control">
                                <option>&nbsp;</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">材料牌号</th>
                        <td class="formValue input-width-260">
                            <input id="" name="" type="text" class="form-control" value="" />
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">材料规格</th>
                        <td class="formValue input-width-40">
                            <input id="" name="" type="text" class="form-control text-right" /><label class="suffix" style="font-size:18px;">&times;</label>
                            <input id="" name="" type="text" class="form-control text-right" /><label class="suffix" style="font-size:18px;">&times;</label>
                            <input id="" name="" type="text" class="form-control text-right" /> &nbsp;
                            <div class="btn-group" style="margin-left:5px;">
                                <a id="" class="btn btn-primary center-block btn-1" onclick="btn_add()"><span class="glyphicon glyphicon-plus"></span> </a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">标准编码</th>
                        <td class="formValue input-width-260">
                            <input id="" name="" type="text" class="form-control" value="" />
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">特殊要求</th>
                        <td class="formValue input-width-260">
                            <input id="" name="" type="text" class="form-control" value="" />
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">材料密度</th>
                        <td class="formValue input-width-210">
                            <input id="" name="" type="text" class="form-control" value="" /><label class="suffix" style="font-size:12px;">g/cm<sup>3</sup></label>
                        </td>
                    </tr>
                </table>
            </div>
        </form>
    </div>
</div>

